package missObjects;

import java.util.logging.Logger;

/**
 * Exception test to handle read error in Rof Template file reading. Maybe not
 * the simplest solution...
 * 
 * @author lefuneste
 *
 */
public class ErrorRofFileReadingException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static Logger LOGGER = Logger.getLogger("RofLogger");

	static {
		LOGGER.getUseParentHandlers();
	}

	public ErrorRofFileReadingException() {
		LOGGER.severe("File format error");
		throw new RuntimeException("File format error");
	}

	public ErrorRofFileReadingException(String s) {
		LOGGER.severe("File format error: " + s);
		throw new RuntimeException("File format error: " + s);
	}
}
